<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="menu">
    <header>
        <div class="hwrap clearfix">
            <a href="/" class="logobox" th:if="${page != 'home'}">
                <img th:src="${companyProfile.logo}" alt="" class="logo-img">
            </a>
            <ul class="navbox">
                <li th:class="'navli ' + ${m.type == 2 ? 'nopos' : ''}" th:each="m: ${menus}">
                    <th:block th:if="${m.type == 1}">
                        <a th:href="${m.href}" rel="noopener noreferrer" class="navTl"><span class="cn" th:text="${m.title}"></span></a>
                        <div class="subox" th:if="${m.children != null && !m.children.isEmpty()}">
                            <a th:href="${ch.href}" th:each="ch: ${m.children}" th:text="${ch.title}">公司介绍</a>
                        </div>
                    </th:block>
                    <th:block th:if="${m.type == 2}">
                        <a href="/products" rel="noopener noreferrer" class="navTl">
                            <span class="cn" th:text="${m.title}">产品中心</span>
                        </a>
                        <div class="subox prosubbox" th:if="${m.children != null && !m.children.isEmpty()}">
                            <div class="indexbox">
                                <a th:href="${mc.href}" th:each="mc, mci: ${m.children}" th:text="${mc.title}">力学检测设备 </a>
                            </div>
                            <ul>
                                <li th:each="mc, mci: ${m.children}">
                                    <div class="img"><img th:src="${mc.imgUrl != null ? mc.imgUrl : '/static/uploads/b290647462fda795497da0e93c987cb9.png'}" alt=""></div>
                                    <a th:href="${mc.href}" class="title" th:text="${mc.title}">力学检测设备</a>
                                    <div class="sub3box" th:if="${mc.children != null && !mc.children.isEmpty()}">
                                        <a th:href="${mc1.href} + '?s=' + ${mc1.id} + '&type=' + ${mci.index} + '&index=' + ${mcii.index}" th:each="mc1, mcii: ${mc.children}" th:text="${mc1.title}">电子拉力试验机 </a>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </th:block>
                </li>
                <li class="phone-box" th:text="${companyProfile.tel}">
                    400-835-6268
                </li>
            </ul>
        </div>
    </header>
</th:block>
</html>